package com.liner.person;

public class Student extends Person{
    String className;
    String stuId;

    public Student() {
        super();
    }

    public Student(String name,int age,String address,String className, String stuId){
        super(name, age, address);
        this.className = className;
        this.stuId = stuId;
    }

    @Override
    void sayHi() {
        super.sayHi();
        System.out.println(name + "所在班级为" + className + ",学号为" + stuId);
    }

    void study(){
        System.out.println(name + "正在学习");
    }
}
